package com.zxx.pattern.proxyPattern.proxyStatic.static1;

/**
 * 继承方式的静态代理类CarProxy1
 *
 * @author zxx on 2021/5/11
 */
public class CarProxy1 extends Car {
    @Override
    public void move() {
        long startTime = System.currentTimeMillis();
        System.out.println("汽车开始行驶");
        super.move();

        long endTime = System.currentTimeMillis();
        System.out.println("汽车停止行驶，并行驶了" + (endTime - startTime) + "毫秒");
    }
}
